﻿using System.Web.Http;

namespace WebApiLesson
{
    public class DurrDetectionController : ApiController
    {
        [HttpPost]
        public IHttpActionResult IssuingStandards([FromBody] Standard standard)
        {
            // 使用匿名类型创建对象
            var result = new { statusCode = 200, message = "Operation successful" };
            // 返回JSON格式的响应
            return Ok(result); // Ok方法内部会调用Json方法来序列化对象
        }
    }
}
